package cn.edu.zju.gis.disasterBE.sever.dao;
import cn.edu.zju.gis.disasterBE.sever.entity.Twitter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface TwitterDAO extends BaseMapper<Twitter> {

    //随机获取12条推特
    @Select("select * from search_tweet order by random() limit 12")
    List<Twitter> getTwitter12();
}
